CXX = gcc
 
TARGET = test
  
C_FLAGS += -g -Wall
   
INC = -IC:/Python27/include/
LIB = -LC:/Python27/libs/ -lpython2.7
	 
all: $(TARGET)
	 
$(TARGET):  test.o
	$(CXX) -o $@ $^  $(LIB) $(C_FLAGS)
	     
.c.o:
	$(CXX) -c -o $*.o $(INC) $(C_FLAGS) $*.c
	     
clean:
	rm -f *.o $(TARGET)
